import { _path2 } from "./path2.js";
import { gouguPoints } from "../algorithm/gougu.js";
import { PATH_MODE } from "../common/pathMode.js";
import { _transform } from '../math/transform.js'
export const _gougu = (options, props) => {
    let points = gouguPoints(options)
    let { transform } = options
    let matrix = points.map(t => _transform(t, transform))
    let { pathMode = PATH_MODE.LINE_LOOP } = options


    return _path2({
        ...options,
        pathMode,
        points: matrix
    }, props)

}